<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>貸出承認画面 | ご近所シェアリングサービス</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="(C) MENOX (http://www.menox.co.jp/)">
<!--Require Stylesheet-->
<link rel="stylesheet" href="/tmserver/css/common.css">
<!--Require Javascript-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<%@ include file="/tmserver/parts/headcommon.jsp" %>
</head>
<body onload="loadUserName()">
<div id="wrapper">
<!--**********▽メインここから**********-->
<div id="wrap-top">
<%@ include file="/tmserver/parts/header.jsp" %>
<div id="content">
<h2>貸出承認画面</h2>
<div class="line"></div>
<!--**********▽カラム1ここから**********-->
<div id="column1">
<!--**********▼メインカラムここから**********-->
<div id="column1-inner">
    <%@ include file="/tmserver/gate/contents.jsp" %>
<!--column1-inner--></div>
<!--**********▲メインカラムここまで**********-->
<!--column1--></div>
<!--**********△カラム1ここまで**********-->
<jsp:useBean id="date" class="java.util.Date"/>
<div id="column2">
<p class="stitle">貸出承認/却下</p>

<table class="condition">
	<tr>
		<th class="lend">カテゴリー</th>
	    <td><c:out value="${f:h(cateMap[lending.categoryId])}"></c:out></td>
	</tr>
	
	<tr>
		<th>品物名</th>
		<td><c:out value="${lending.name}"></c:out></td>
	</tr>
	
	<tr>
		<th>個数</th>
		<td><c:out value="${lendingHistory.count}"></c:out></td>
	</tr>
	
	<tr>
		<th>借用者</th>
		<td>
			<c:out value="${f:h(userMap[lendingHistory.borrowingUser])}"></c:out>
	    	<input type="hidden" name="borrowingUser" value="${lendingHistory.borrowingUser}">
	    </td>
	</tr>
	
	<tr>
		<th>貸出開始日</th>
		<td>
			<fmt:formatDate value="${lendingHistory.fromDate}" pattern="yyyy/MM/dd" />
		</td>
	</tr>
	
	<tr>
		<th>返却予定日</th>
		<td>
			<fmt:formatDate value="${lendingHistory.toDate}" pattern="yyyy/MM/dd" />
		</td>
	</tr>
</table>

<table class="condition2">
	<tr>
	    <td colspan="3" class="center">
	    	上記の申請を承認しますか？
	    </td>
	</tr>

	<tr height="30px">
	</tr>
	
	<tr>
	    <td class="right">
	    	<form method="post" action="lendingUpdate">
				<input type="hidden" name="statusType" value="1">
				<input type="hidden" name="lendingHId" value="${lendingHistory.id}">
	    		<input type="submit" value="承認" class="btn"/>
	    	</form>
	    </td>
	    <td width="60px">
		</td>
	    <td class="left">
	    	<form method="post" action="lendingUpdate">
				<input type="hidden" name="statusType" value="5">
				<input type="hidden" name="lendingHId" value="${lendingHistory.id}">
	    		<input type="submit" value="申請却下" class="btn"/>
	    	</form>
	    </td>
	</tr>
</table>


<!--column2--></div>
<!--**********△カラム2ここまで**********-->
<!--content--></div>
<!--wrap-top--></div>
<!--**********△メインここまで**********-->
<%@ include file="/tmserver/parts/footer.jsp" %>
<!--wrapper--></div>
</body>
</html>
